//to reset element-ui default css
.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.tab-nav {
  width: 100%;

  .el-tabs__header {
    width: 100%;
    background-color: #edf1f5;
    border-bottom: 2px solid #3a7fe8;
    margin: 0;

    .el-tabs__nav-wrap {
      width: 100%;
      margin-bottom: 0;

      span {
        height: 32px;
        line-height: 34px;
      }

      .el-tabs__nav {
        border: 0;
      }
    }
  }
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
  min-width: 700px;
  .el-dialog__header {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 12px 10px;
  }

  .el-dialog__headerbtn {
    top: 18px;
  }

  .el-dialog__footer {
    border-top: 1px solid #e5e5e5;
    padding: 16px 24px;
  }
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

.form-content {
  >.el-dialog {
    >.el-dialog__body {
      padding: 24px 24px 9px;

      >form {
        >.hr {
          margin-bottom: 24px;
        }
      }
    }
  }
}

.tab-nav {
  .el-tabs__item {
    color: #4c5c70;
    height: 30px;
    line-height: 30px;
    margin-top: 5px;
    border-radius: 5px 5px 0 0;
    background: rgba(255, 255, 255, 0.7);
    margin-left: 8px;
    font-size: 14px;

    &.is-active {
      background-color: #3a7fe8;
      color: #fff;
    }
  }
}

.el-tabs--card>.el-tabs__header .el-tabs__item:first-child,
.el-tabs--card>.el-tabs__header .el-tabs__item:first-child:hover {
  padding: 0 20px;
}

.el-tabs--card>.el-tabs__header .el-tabs__item:not(:first-child) {
  padding: 0 0 0 20px;
}

.el-tabs--card>.el-tabs__header .el-tabs__item:not(:first-child):hover {
  padding: 0 0 0 20px;
}

.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable:not(:first-child) {
  padding: 0 0 0 20px;
}

.el-tabs--card>.el-tabs__header .el-tabs__item {
  border: 0;
}

.el-tabs--card>.el-tabs__header .el-tabs__item .el-icon-close {
  width: auto;
  top: -2px;
  right: 0;
}

.el-tabs--card>.el-tabs__header .el-tabs__item .el-icon-close {
  font-size: 14px;
  margin: 0 8px 0 20px;
}

// primary button
.el-button--primary {
  background-color: #3a7fe8;
  border-color: #3a7fe8;
}

.el-button--primary:hover {
  background-color: #6ca0ef;
  border-color: #6ca0ef;
}

.el-button--primary:active {
  background-color: #1f5dbc;
  border-color: #1f5dbc;
}

//default button
.el-button--default {
  border-color: #d2d4d6;
}

.el-button--default:hover {
  background-color: #ecf5ff;
  border-color: #c6e2ff;
}

.el-button--default:active {
  background-color: #ecf5ff;
  border-color: #3a7fe8;
}

//danger button
.el-button--danger {
  background-color: #ff5151;
  border-color: #ff5151;
}

.el-button--danger:hover {
  background-color: #ff816e;
  border-color: #ff816e;
}

.el-button--danger:active {
  background-color: #db4c42;
  border-color: #db4c42;
}

//is-disabled
.el-button.is-disabled {
  color: #8896a7;
  background-color: #e4e9ee;
}

.el-button.is-disabled:hover {
  color: #8896a7;
  background-color: #e4e9ee;
}

.el-button--text {
  color: #2876c2;

  &.danger {
    color: #db4c42;
  }
}

.el-button.el-button--text:hover {
  text-decoration: underline;
}

.el-button.is-disabled.el-button--text:hover {
  background: transparent;
  text-decoration: none;
}

.el-button--default.el-button--small:not(.is-circle),
.el-button--default.el-button--medium:not(.is-circle),
.el-button--default.el-button--mini:not(.is-circle),
.el-button--primary.el-button--small:not(.is-circle):not(.el-transfer__button),
.el-button--primary.el-button--medium:not(.is-circle):not(.el-transfer__button),
.el-button--primary.el-button--mini:not(.is-circle):not(.el-transfer__button),
.el-button--danger.el-button--small:not(.is-circle),
.el-button--danger.el-button--medium:not(.is-circle),
.el-button--danger.el-button--mini:not(.is-circle) {
  padding: 0 16px;
  min-width: 80px;
  height: 32px;
}

.el-button--large,
.el-button--large,
.el-button--large {
  padding: 0 16px;
  min-width: 120px;
  height: 40px;
}

.el-button {
  &>i:hover {
    color: #3a7fe8;
  }
}

.el-button.is-disabled {
  &>i {
    color: #bfbfbf;
  }
}

.el-form-item__error {
  color: #ff5846;
  background: url(/static/images/error.png) no-repeat 1px;
  text-indent: 18px;
}

//loading button
.el-button.is-loading {
  background: #3a7fe8;
  color: #fff;
}

//radio
.el-radio,
.el-radio__input.is-checked+.el-radio__label,
.el-radio__input.is-disabled+span.el-radio__label {
  color: #4c5c70;
}

.el-radio-button__orig-radio:checked+.el-radio-button__inner {
  border-color: #3a7fe8;
  background: #3a7fe8;
}

.el-radio-button__inner {
  border-color: #d2d4d6;
  color: #4c5c70;
}

.el-radio-button__orig-radio:disabled+.el-radio-button__inner {
  background: #f5f7f9;
  color: #bec7d1;
  border-color: #d2d4d6;
}

//checkbox
.el-checkbox__input.is-checked+.el-checkbox__label,
.el-checkbox__label,
.el-checkbox__input.is-disabled+span.el-checkbox__label {
  color: #4c5c70;
}

.el-date-editor {
  .el-input__prefix {
    left: auto;
    right: 5px;
  }

  .el-input__suffix {
    right: 22px;
  }

  .el-input__inner {
    padding-left: 10px;
  }
}

//时间日期选择器
.time-select-item:hover,
.el-time-spinner__item:hover {
  background: #ebf2ff;
  color: #3a7fe8;
}

// for table
.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #f5f7f9;
}

.el-table {
  color: #2b3b4e;
  font-size: 14px;

  &.has-top-border {
    border-top: 1px solid #e1e3e5;
  }
}

.el-table thead {}

.el-table th {
  color: #4c5c70;
  line-height: 30px;
  border-top: 1px solid #dadcde;
}

.el-table .cell {
  white-space: nowrap;
}

.preline .cell {
  white-space: pre-line !important;

}

.normal-cell .cell {
  white-space: normal !important;
}

.edu-row-expand-4 {
  .el-form-item__label {
    width: 114px;
    color: #999999;
  }

  .el-form-item__content {
    color: #27282b;

    i {
      vertical-align: text-bottom;
    }
  }
}

.el-form-item__label {
  font-weight: normal;
}

// for siderbar
.el-menu {
  border: 0;
}

// for form
.el-form--inline {
  .el-form-item {
    &.no-bottom {
      margin-bottom: 0;
    }

    &.no-right {
      margin-right: 0;
    }
  }
}

.editor {
  .el-form-item__content {
    line-height: 20px;
  }
}

.el-transfer {
  height: 100%;

  .el-transfer-panel {
    width: calc(50% - 50px);
    height: 100%;
  }
}

.el-tabs__nav {
  :first-child {
    .el-icon-close {
      display: none;
    }
  }
}

.el-collapse-item__content {
  padding-bottom: 0;
}

.el-tabs__item.is-left {
  width: 180px;
  text-align: left !important;
}

.el-tabs__item.is-left.is-active {
  background: rgba(40, 100, 210, 0.08);
}

.el-menu-item.is-active {
  background: #f1f5fc;
  border-left: 2px solid #2876c2;

  a.router-link-exact-active.router-link-active {
    color: #3a7fe8;
  }
}

.el-submenu {
  .el-submenu__title {
    height: 40px;
    line-height: 40px;
    // padding: 0 0 0 68px !important;
    padding: 0 0 0 32px !important;
    color: #4c5c70;

    i {
      right: 23px;
    }
  }

  .el-menu-item {
    height: 40px;
    line-height: 40px;
    // padding-left: 84px !important;
    padding-left: 42px !important;
  }
}

.el-menu-item {
  padding-left: 32px !important;
  // padding-left: 68px !important;
  height: 40px;
  line-height: 40px;
}

// input
.el-input__inner {
  border-radius: 2px;
  border: 1px solid #d2d4d6;
  padding: 0 8px;
  color: #262626;
}

.el-select-dropdown__item.hover {
  color: #3a7fe8;
  background: #ebf2ff;
}

.el-textarea__inner {
  border-radius: 2px;
  padding: 5px 8px;
  color: #262626;
}

.el-input.is-disabled .el-input__inner,
.el-textarea.is-disabled .el-textarea__inner {
  color: #8896a7;
}

//el-input-number
.el-input-number__decrease,
.el-input-number__increase {
  background: #fff;
}

.el-input-number__decrease.is-disabled,
.el-input-number__increase.is-disabled {
  background: #f5f7f9;
}

.el-input-number.is-disabled .el-input-number__increase,
.el-input-number.is-disabled .el-input-number__decrease {
  color: #677380;
  background: #f5f7f9;
}

//select
.el-select .el-tag {
  background: transparent;
  color: #4c5c70;
}

.el-select .el-tag__close.el-icon-close:hover {
  background: red;
}

//el-cascader
.el-cascader-menu__item:hover {
  background: #ebf2ff;
  color: #3a7fe8;
}

.el-cascader-menu__item.is-active {
  color: #3a7fe8;
}

.el-button {
  border-radius: 2px;
}

.user-select-box {
  input {
    padding-left: 8px;
    background: transparent;
    border-radius: 25px;
    background-color: rgba(237, 241, 245, 0.5);
  }

  i {
    margin-left: -28px;
    color: #939faf;
  }

  button {
    margin-left: 8px;
  }
}

.duohang .cell {
  white-space: normal;
}

.el-table--small,
.el-table--mini {

  td,
  th {
    padding: 4px 0;
  }
}

.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  background: #e2e4e6 !important;
  border-left: 2px solid #2876c2;
}

.el-main {
  padding: 10px;
}

.el-card {
  // border: 0;
  border-radius: 0;

  .el-card__body {
    padding: 24px;
  }
}

.el-card+.el-card {
  margin-top: 16px;
}

.el-form-item__label {
  font-size: 14px;
  padding: 0 5px 0 0;
  color: #4C5C70;
}

.el-form--label-top .el-form-item--small .el-form-item__label {
  line-height: 16px;
  padding-bottom: 5px;
}

.self-loading {
  font-size: 40px;
}

.el-collapse-item__arrow {
  margin: 0 23px 0 15px;
}

.el-table--border td,
.el-table--border th,
.el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
  border-right: 1px solid #dadcde;
}

.el-table td,
.el-table th.is-leaf {
  border-bottom: 1px solid #dadcde;
}

.el-date-picker {
  width: 306px;

  .el-date-picker__header {
    margin: 4px;
  }

  .el-picker-panel__content {
    margin: 4px;
  }
}

.el-input-number--small {
  line-height: 32px;
}

.el-input-number__decrease,
.el-input-number__increase {
  height: 30px;
}

.el-input-number.is-controls-right .el-input-number__decrease {
  bottom: 2px;
}

.el-form-item.is-success .el-input__inner,
.el-form-item.is-success .el-input__inner:focus,
.el-form-item.is-success .el-textarea__inner,
.el-form-item.is-success .el-textarea__inner:focus {
  border-color: #c0c4cc;
}

.el-button+.el-dropdown,
.el-dropdown+.el-button {
  margin-left: 10px;
}

.edu-container {
  width: 100%;
  height: calc(100% - 117px);
  overflow-y: auto;
  overflow-x: hidden;
}

// // 解决form表单元素在IE11下的兼容性问题
.el-form-item--small .el-form-item__content,
.el-form-item--small .el-form-item__label {
  line-height: 36px;
  min-height: 33px; // 如果height固定了会导致textarea高度被调整时遮住下面的表单
}

//解决tooltip宽度过长问题
.el-tooltip__popper {
  max-width: 400px;
//   line-height: 150%;
  word-break: break-all;
}

.line-height17 {
  &.el-form-item {
    .el-form-item__label {
      line-height: 17px;
    }
  }
}

.edu-message-box {
  &.el-message-box--center {
    padding-bottom: 10px;

    .el-message-box__header {
      padding-top: 15px;
    }

    .el-message-box__title {
      justify-content: flex-start;

      //justify-content: left;   IE不支持这种写法
      .el-message-box__status {
        display: inline-block;
        background-repeat: no-repeat;
        width: 25px;
        height: 24px;
        margin-right: 8px;

        &.edu-icon-delete {
          background-image: url(/static/images/icon/dialog_del.png);
        }

        &.edu-icon-add {
          background-image: url(/static/images/icon/dialog_add.png);
        }

        &.edu-icon-confirm {
          background-image: url(/static/images/icon/dialog_confirm.png);
        }

        &.edu-icon-notify {
          background-image: url(/static/images/icon/dialog_notify.png);
        }

        &.edu-icon-loding {
          background-image: url(/static/images/icon/dialog_loding.png);
        }

        &.color-main {
          color: $color-main;
        }
      }
    }

    .el-message-box__content {
      padding-left: 15px;
      padding-right: 15px;
      text-align: left;

      .el-message-box__message {
        word-break: break-all;
        max-height: 136px;
        overflow: auto;
      }
    }

    .el-message-box__btns {
      text-align: right;
    }
  }
}

// 菜单管理 折叠面板样式 箭头在最右
.menus-collapse {
  .el-collapse-item__arrow {
    margin: 0 8px 0 auto;
  }

  &.el-collapse,
  .el-collapse-item__header {
    border: none;
  }
}

// 角色管理 授权dialog
.roleList-dialog {
  .el-dialog__body {
    padding-top: 16px;

    .hidedenCheck section:last-child .el-checkbox__inner {
      border-color: #dcdfe6;
      background-color: #fff;
    }
  }
}

// 重置 el-form-item__content的行内 margin-left 100
.resetContent .el-form-item__content {
  margin-left: 0px !important;
}

// 首页消息弹框

.systemDialog .el-dialog {
  .el-dialog__header {
    padding: 24px;

    // padding-bottom: 23px;
    .el-dialog__title {
      font-size: '微软雅黑';
      font-weight: bold;
      font-size: 18px;
    }
  }

  .el-dialog__body {
    max-height: 462px;
    height: 65vh;
    padding: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    overflow-y: auto;

    &::-webkit-scrollbar {
      width: 8px;
    }

    &::-webkit-scrollbar-thumb {
      /*滚动条里面小方块*/
      border-radius: 4px;
      -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
      background: rgba(163, 167, 170, 1);
    }

    &::-webkit-scrollbar-track {
      /*滚动条里面轨道*/
      -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
      background: rgba(163, 167, 170, 0.5);
    }
  }

  .el-dialog__footer {
    height: 65px;
  }
}

.systemDialog.edu-dialog_wrapper .el-dialog .edu-dialog_body {
  padding: 24px;
  padding-bottom: 10px;
}

.scrollbarSty .el-table__body-wrapper {
  &::-webkit-scrollbar {
    width: 8px;
  }

  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: rgba(163, 167, 170, 1);
  }

  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: rgba(163, 167, 170, 0.5);
  }
}

.systemDialog.edu-dialog_wrapper .el-dialog .edu-dialog_body {
  height: 100%;
}

.systemDialog.clearShaking .el-dialog .el-dialog__body {
  height: auto;
}

.groupList-addUser.el-card {
  border: none;
}

el-divider {
  position: relative;
  display: block;
  height: 1px;
  width: 100%;
  margin: 24px 0;
  background-color: #dcdfe6;
}

@media screen and(-ms-high-contrast:active),(-ms-high-contrast:none){
  //兼容IE11，修正级联选择器，右箭头图标错位问题
  .el-cascader-node__postfix {
    line-height: 0;
  }
}

@media (max-width: 800px) {
  .el-message-box__wrapper {
    ::v-deep .edu-message-box,.el-message-box {
        width: calc(100% - 20px);
        max-width: 400px;
    }
  }
}

.el-table::before {
  height: 0 // 去除el-table多余的横线
}

.el-dropdown-menu--small .el-dropdown-menu__item,
.el-dropdown-menu .el-dropdown-menu__item {
  white-space: nowrap; // 下拉菜单一行显示
}
